Environment Deployment
To facilitate users' secondary development, SuperMap iDesktopX provides an extension development example template project SampleCode. Simply install JDK and development tools on the computer, and perform simple configuration on the project template to conduct extension development based on SampleCode.
Software Installation
For SuperMap iDesktopX extension development, install Java development tools JDK 1.8 or JDK 17 on the computer. IDEA is recommended as the development tool, with version 2020.2.2 or later suggested.
Development Project Configuration
After installing IDEA, open the extension development project template SampleCode and configure it. Detailed instructions are as follows:
- Open Template Project: IDEA → File → Open → Select the SuperMap iDesktopX product package\templates\SampleCode directory to open the extension development sample template project.
- Set Environment: Set the project's JDK environment to 1.8/17. Method: File → Project Structure → Project → Project SDK → Select 1.8/17 from the dropdown list.
- Add Desktop Dependencies: In the dialog from step 2, select Global Libraries → Add → JAVA. In the Select Library Files dialog, simultaneously select the following 4 directories, click OK, then choose develop to add desktop dependencies to the secondary development plugin.
- %SuperMap iDesktopX product package%/bin/
- %SuperMap iDesktopX product package%/bundles/idesktop_bundles/
- %SuperMap iDesktopX product package%/bundles/require_bundles/
- %SuperMap iDesktopX product package%/lib/
- %SuperMap iDesktopX product package%/lib/jars
- %SuperMap iDesktopX product package%/support/batJars/bdt-all-runtime.jar
- Select Startup Configuration for Corresponding JDK Environment: If the JDK environment is 1.8, choose MyStartUp; if JDK 17, select MyStartUp_JDK17.
- Compile: Click the Run or Debug button on the toolbar. After compilation, SuperMap iDesktopX will start automatically. Upon startup, a secondary development group will appear in the "Start" tab of the Ribbon, containing function buttons like secondary development sample and delete duplicate points. This indicates successful environment configuration, allowing users to perform extension development based on SuperMap iDesktopX. Note: If SuperMap iDesktopX does not start automatically, update IDEA to version 2020.2.2 or later.
Related Content